package com.ego.product.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @program: ego
 * @description: 线程池属性配置
 * @author: KamTang
 * @create: 2022-12-12 10:00
 **/
@ConfigurationProperties(prefix = "ego.thread")
@Component
@Setter
@Getter
public class ThreadPoolConfigProperties {
    /**
     * 核心线程数
     */
    private Integer coreSize;
    /**
     * 最大线程数
     */
    private Integer maxSize;
    /**
     * 存活时间
     */
    private Integer keepAliveTime;
}
